<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", -10);
%>

<!DOCTYPE html>
<html lang="en">
<head>

    <title>皓月科技</title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="keywords" content="科技,皓月,皓月科技,皓月公司">
    <meta name="description" content="">

    <script>
        // window.onresize = function () {
        //     // document.getElementById("id-logo").style.display = document.documentElement.clientWidth > 770 ? "block" : "none";
        //     document.getElementById("id-logo").style.marginTop = document.documentElement.clientWidth > 770 ? "15px" : "5px";
        //     document.getElementById("id-logo").style.marginRight = document.documentElement.clientWidth > 770 ? "15px" : "5px";
        // }
        //
        // $(function () {
        //         $("#css").attr("href", window.screen.width <= 770 ? "logo-css-2" : "logo-css1");
        // })

    </script>

    <%--<style>--%>
        <%--.main-title{--%>
            <%--font-size: 32px;--%>
            <%--padding-bottom: 10px;--%>
        <%--}--%>
    <%--</style>--%>

    <style>
        @media screen and (max-device-width: 770px){
            .main-logo{
                border-radius: 30px;
                width: 40px;
                height: 40px;
                box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
                float:left;
                margin-right: 5px;
                margin-top: 5px;
            }
        }
        @media screen and (min-device-width: 770px){
            .main-logo{
                border-radius: 30px;
                width: 40px;
                height: 40px;
                box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
                float:left;
                margin-right: 15px;
                margin-top: 15px;
            }
        }

    </style>


    <script src="https://cdn.bootcss.com/jquery/1.11.1/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/page/js/my-jQ.js"></script>
    <script src="${pageContext.request.contextPath}/page/js/jquery.smooth-scroll.js"></script>

    <!-- stylesheets css -->
    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/bootstrap.min.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/magnific-popup.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/animate.min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/font-awesome.min.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/nivo-lightbox.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/nivo_themes/default/default.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/hover-min.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/flexslider.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/style.css">
    <%--<link rel="stylesheet" href="${pageContext.request.contextPath}/page/css/pintuer.css">--%>

    <link href='${pageContext.request.contextPath}/page/css/google-font1.css' rel='stylesheet' type='text/css'>
    <link href='${pageContext.request.contextPath}/page/css/google-font2.css' rel='stylesheet' type='text/css'>


</head>
<body id="top" data-spy="scroll" data-target=".navbar-collapse" data-offset="50">

<!-- Preloader section -->
<div class="preloader">
    <div class="sk-spinner sk-spinner-pulse"></div>
</div>


<!-- Home section -->
<section id="home" class="parallax-section">
    <div class="gradient-overlay"></div>
    <div class="container">
        <div class="row">
            <div class="col-md-offset-2 col-md-8 col-sm-12">
                <img src="page/images/hoyueB3.png" class="img-big-logo">
                <a href="#feature" class="wow fadeInUp btn btn-default hvr-bounce-to-top smoothScroll" id="id-discover"
                   data-wow-delay="1.3s">discover now</a>
            </div>
        </div>
    </div>
</section>


<!-- Navigation section -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
    <div class="container">

        <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon icon-bar"></span>
                <span class="icon icon-bar"></span>
                <span class="icon icon-bar"></span>
            </button>

            <div>
                <div class="col-md-3 col-sm-3"><a href="#"><img src="page/images/hoyue-logo.jpg" id="id-logo" class="main-logo"></a></div>
                <div class="col-md-9 col-sm-9"><a href="#" class="navbar-brand">皓月科技</a> </div>
            </div>

            <%--<a href="#" class="navbar-brand"><img src="page/images/hoyue-logo.jpg" id="id-logo"--%>
                                                  <%--style="border-radius: 30px; width: 40px; height: 40px; box-shadow: 1px 1px 1px rgba(0,0,0,0.2); float:left; margin-right: 20px">--%>
                <%--皓月科技</a>--%>
        </div>
        <div class="collapse navbar-collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#top" class="smoothScroll">主页</a></li>
                <li><a href="#feature" class="smoothScroll">关于我们</a></li>
                <li><a href="#about" class="smoothScroll">资讯</a></li>
                <li><a href="#video" class="smoothScroll">视频</a></li>
                <li><a href="#menu" class="smoothScroll">部门</a></li>
                <li><a href="#team" class="smoothScroll">成员介绍</a></li>
                <li><a href="#gallery" class="smoothScroll">成就</a></li>
                <li><a href="#contact" class="smoothScroll">加入我们</a></li>
            </ul>
        </div>

    </div>
</div>


<!-- Feature section -->
<section id="feature" class="parallax-section">
    <div class="container">
        <div class="row">

            <div class="col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10">
                <div class="wow fadeInUp section-title" data-wow-delay="0.6s">
                    <h2 class="main-title">关于我们</h2>
                    <h4>About us</h4>
                </div>
            </div>

            <div class="clearfix"></div>

            <c:forEach items="${introduction}" var="item">
                <div class="col-md-4 col-sm-6 wow fadeInUp" data-wow-delay="0.3s">
                    <div class="feature-thumb">
                        <div class="feature-icon">
                            <span><i class="fa ${item.fa}"></i></span>
                        </div>
                        <h3>${item.title}</h3>
                        <p style="height: 112px">${item.content}</p>
                    </div>
                </div>
            </c:forEach>

        </div>
    </div>
</section>


<section id="about" class="parallax-section">
    <div class="container">
        <div class="row">

            <div class="col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10">
                <div class="wow fadeInUp section-title" data-wow-delay="0.3s">
                    <h2 class="main-title">资&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;讯</h2>
                    <h4>The information</h4>
                </div>
            </div>
            <div class="clearfix"></div>

            <div class="wow fadeInUp col-md-5 col-sm-5" data-wow-delay="0.5s">
                <!-- flexslider -->
                <div class="flexslider">
                    <ul class="slides">

                        <c:forEach items="${info}" var="info">
                            <c:if test="${info.picture}">
                                <li>
                                    <a href="${info.url}" target="_blank"> <img class="information-picture"
                                                                src="${pageContext.request.contextPath}/${info.address}?random=${randomNum}"
                                                                alt="Flexslider">
                                        <p class="information-title"> ${info.title}</p></a>
                                </li>
                            </c:if>
                        </c:forEach>
                    </ul>
                </div>
            </div>

            <div class="wow fadeInUp col-md-7 col-sm-7" data-wow-delay="0.9s" style="height: 50%">
                <h2 class="main-title">The New</h2>

                <ul class="information-ul-text">
                    <c:forEach items="${info}" var="info">
                        <c:if test="${!info.picture}">
                            <li style="font-size: 18px">
                                <div class="information-text"><a href="${info.url}" target="_blank">${info.title}</a></div>
                                <div class="information-text-time"><a>${info.time}</a></div>
                            </li>
                        </c:if>
                    </c:forEach>
                </ul>
            </div>
        </div>
    </div>
</section>

<!-- Video section -->
<section id="video" class="parallax-section">
    <div class="overlay"></div>
    <div class="container">
        <div class="row">
            <div class="col-md-offset-2 col-md-8 col-sm-12">
                <a class="popup-youtube" href="${video.address}?random=${randomNum}"><i class="fa fa-play"></i></a>
                <h2 class="wow fadeInUp" data-wow-delay="0.5s">${video.title}</h2>
                <p class="wow fadeInUp" data-wow-delay="0.8s">${video.presentation}</p>
            </div>
        </div>
    </div>
</section>

<!-- Menu section -->
<section id="menu" class="parallax-section">
    <div class="container">
        <div class="row">

            <div class="col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10">
                <div class="wow fadeInUp section-title" data-wow-delay="0.3s">
                    <h2 class="main-title">部&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;门</h2>
                    <h4>The department</h4>
                </div>
            </div>
            <c:forEach items="${departments}" var="department">
                <div class="col-md-6 col-sm-12">
                    <div class="media wow fadeInUp" data-wow-delay="0.6s">
                        <div class="media-object pull-left">
                            <img src="${department.picture_address}?random=${randomNum}" class="img-responsive"
                                 alt="Food Menu" style="height: 125px">
                        </div>
                        <div class="media-body">
                            <h3 class="media-heading">${department.name}</h3>
                            <p>${department.introduction}</p>
                        </div>
                    </div>
                </div>
            </c:forEach>
        </div>
    </div>
</section>

<!-- Team section -->
<section id="team" class="parallax-section">
    <div class="container">
        <div class="row">

            <div class="col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10">
                <div class="wow fadeInUp section-title" data-wow-delay="0.3s">
                    <h2 class="main-title">成员介绍</h2>
                    <h4>The Top talent</h4>
                </div>
            </div>

            <div class="clearfix"></div>

            <c:forEach items="${character}" var="chara">
                <div class="col-md-3 col-sm-6 wow fadeInUp" data-wow-delay="0.4s" style="padding-bottom: 40px">
                    <div class="team-thumb">
                        <img src="${chara.picture_address}?random=${randomNum}" class="img-responsive" alt="Team">
                        <div class="team-des">
                            <h3>${chara.name}</h3>
                            <h4>${chara.slogan}</h4>
                        </div>
                    </div>
                </div>
            </c:forEach>

        </div>
    </div>
</section>

<!-- Gallery section -->
<section id="gallery" class="parallax-section">
    <div class="container">
        <div class="row">

            <div class="col-md-12">

                <div class="col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10">
                    <div class="wow fadeInUp section-title" data-wow-delay="0.3s">
                        <h2 class="main-title">我们的成绩</h2>
                        <h4>we have special foods</h4>
                    </div>
                </div>

                <!-- iso section -->
                <div class="iso-section wow fadeInUp" data-wow-delay="0.6s">

                    <ul class="filter-wrapper clearfix">
                        <li><a href="#" data-filter="*" class="selected opc-main-bg">All</a></li>
                        <li><a href="#" class="opc-main-bg" data-filter=".app">app</a></li>
                        <li><a href="#" class="opc-main-bg" data-filter=".competition">competition</a></li>
                        <li><a href="#" class="opc-main-bg" data-filter=".web">web</a></li>
                    </ul>

                    <!-- iso box section -->
                    <div class="iso-box-section wow fadeInUp" data-wow-delay="0.9s">
                        <div class="iso-box-wrapper col4-iso-box">
                            <c:forEach items="${workDisplays}" var="work">
                                <div class="iso-box ${work.category} col-md-4 col-sm-6">
                                    <div class="gallery-thumb">
                                        <a href="${pageContext.request.contextPath}/${work.picPath}"
                                           data-lightbox-gallery="food-gallery">
                                            <img src="${pageContext.request.contextPath}/${work.picPath}?random=${randomNum}"
                                                 class="fluid-img" alt="Category" width="349px" height="233px">
                                            <div class="gallery-overlay">
                                                <div class="gallery-item">
                                                    <i class="fa fa-search"></i>
                                                </div>
                                            </div>
                                        </a>
                                    </div>
                                    <h3>${work.name}</h3>
                                </div>
                            </c:forEach>
                        </div>
                    </div>

                </div>

            </div>

        </div>
    </div>
</section>

<!-- Contact section -->
<section id="contact" class="parallax-section">
    <div class="overlay"></div>
    <div class="container">
        <div class="row">

            <div class="col-md-offset-2 col-md-8 col-sm-offset-1 col-sm-10">
                <div class="wow fadeInUp section-title" data-wow-delay="0.3s">
                    <h2 class="main-title">加&nbsp;入&nbsp;我&nbsp;们</h2>
                    <h4>we are always ready to serve you!</h4>
                </div>
                <div class="contact-form wow fadeInUp" data-wow-delay="0.7s">
                    <form id="contact-form" method="post" accept-charset="UTF-8"
                          action="${pageContext.request.contextPath}/MessageBoardServlet?method=addMessageBoard">
                        <input name="name" type="text" class="form-control" placeholder="Your Name" required>
                        <input name="email" type="email" class="form-control" placeholder="Your Email" required>
                        <input name="phone" type="text" class="form-control" placeholder="Your Phone" required>
                        <textarea name="message" class="form-control" placeholder="Message" rows="5"
                                  required></textarea>
                        <input type="submit" class="form-control submit" value="SEND MESSAGE">
                    </form>
                </div>
            </div>

        </div>
    </div>
</section>

<!-- Footer section -->
<footer>
    <div class="container">
        <div class="row">
            <div class="wow fadeInUp col-md-7 col-sm-7" data-wow-delay="1.3s">
                <h3 style="margin-bottom: 60px; margin-top: 30px" class="main-title">About The company</h3>


                    <div class="col-md-3 col-sm-3 foot-a"><a>联&nbsp;系&nbsp;我&nbsp;们</a></div>
                    <div class="col-md-3 col-sm-3 foot-a"><a>加&nbsp;入&nbsp;我&nbsp;们</a></div>
                    <div class="col-md-3 col-sm-3 foot-a"><a>关&nbsp;于&nbsp;我&nbsp;们</a></div>
                    <div class="col-md-3 col-sm-3 foot-a"><a>常&nbsp;见&nbsp;问&nbsp;题</a></div>

                    <br><br><br><br>

                    <div class="col-md-3 col-sm-3 foot-a"><a>侵&nbsp;权&nbsp;申&nbsp;述</a></div>
                    <div class="col-md-3 col-sm-3 foot-a"><a>友&nbsp;情&nbsp;链&nbsp;接</a></div>
                    <div class="col-md-3 col-sm-3 foot-a"><a>帮&nbsp;助&nbsp;中&nbsp;心</a></div>
                    <div class="col-md-3 col-sm-3 foot-a"><a>意&nbsp;见&nbsp;反&nbsp;馈</a></div>


            </div>

            <div class="wow fadeInUp col-md-5 col-sm-5" data-wow-delay="1.6s" style="text-align: center">
                <h3 style="margin-top: 30px" class="main-title">Contact Detail</h3>
                <p><img src="page/images/hoyue.png"></p>
            </div>
        </div>
    </div>
</footer>

<!-- Copyright section -->
<section id="copyright">
    <div class="container">
        <div class="row">

            <div class="col-md-8 col-sm-8 col-xs-8">
                <p>Copyright &copy; 2018 皓月科技公司&nbsp;&nbsp;版权所有</p>
            </div>

            <div class="col-md-4 col-sm-4 text-right used">
                <a href="#top" class="fa fa-angle-up gototop"></a>
            </div>

        </div>
    </div>
</section>

<!-- javscript js -->

<script src="${pageContext.request.contextPath}/page/js/bootstrap.min.js"></script>

<script src="${pageContext.request.contextPath}/page/js/jquery.magnific-popup.min.js"></script>

<script src="${pageContext.request.contextPath}/page/js/jquery.sticky.js"></script>
<script src="${pageContext.request.contextPath}/page/js/jquery.backstretch.min.js"></script>

<script src="${pageContext.request.contextPath}/page/js/isotope.js"></script>
<script src="${pageContext.request.contextPath}/page/js/imagesloaded.min.js"></script>
<script src="${pageContext.request.contextPath}/page/js/nivo-lightbox.min.js"></script>

<script src="${pageContext.request.contextPath}/page/js/jquery.flexslider-min.js"></script>

<script src="${pageContext.request.contextPath}/page/js/jquery.parallax.js"></script>
<script src="${pageContext.request.contextPath}/page/js/smoothscroll.js"></script>
<script src="${pageContext.request.contextPath}/page/js/wow.min.js"></script>

<script src="${pageContext.request.contextPath}/page/js/custom.js"></script>

</body>
</html>
